/* 全局样式重置与基础配置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4361ee;
    --primary-light: #7209b7;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --success: #4cc9f0;
    --danger: #f72585;
    --neutral: #f8f9fa;
    --dark: #212529;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html, body {
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--neutral);
}

/* 导航栏样式 */
.nav {
    height: 60px;
    background-color: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    line-height: 60px;
    padding: 0 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav .logo {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav .logo i {
    color: var(--accent);
}

/* 容器样式 */
.container {
    width: 100%;
    height: calc(100% - 60px);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 按钮基础样式 */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 输入框基础样式 */
.input-field {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--neutral);
    font-size: 1rem;
    transition: var(--transition);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
}

/* 卡片组件样式 */
.card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* 自定义弹窗样式 */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: rgba(22, 33, 62, 0.95);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow);
}

.modal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}